import 'dart:io';

import 'package:extended_image/extended_image.dart';
import 'package:flutter/widgets.dart';
import 'package:matisse_android_plugin/clip/custom_image_clip_state.dart';

///裁剪页面
class CustomImageClipPage extends StatefulWidget {
  //左取消组件
  final Widget topLeftWidget;
  //背景颜色
  final Color backgroundColor;
  //蒙版颜色
  final Color maskColor;
  //取景框配置
  final EditorConfig editorConfig;
  //取景框比例
  final double aspectRatio;
  //取景框线宽
  final double lineWidth;
  //取景框线颜色
  final Color lineColor;
  //边距值
  final double marginValue;
  //本地文件
  final File file;
  //左取消组件
  final Widget leftCancelWidget;
  //右裁剪组件
  final Widget rightClipWidget;

  const CustomImageClipPage(
      {Key key,
        this.topLeftWidget,
        this.backgroundColor,
        this.maskColor,
        this.editorConfig,
        this.aspectRatio,
        this.lineWidth,
        this.lineColor,
        this.marginValue,
        this.file,
        this.leftCancelWidget,
        this.rightClipWidget})
      : super(key: key);

  @override
  State createState() => CustomImageClipState();
}
